package com.banyuan.domain;

import java.util.Date;
import java.util.Objects;

public class Types {
    private Integer id;
    private String name;
    private String intro;
    private Date createTime;
    private Date updateTime;
    private String operator;

    public Types() {
    }

    public Types(Integer id, String name, String intro, Date createTime, Date updateTime, String operator) {
        this.id = id;
        this.name = name;
        this.intro = intro;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.operator = operator;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    @Override
    public String toString() {
        return "Types{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", intro='" + intro + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", operator='" + operator + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Types types = (Types) o;
        return Objects.equals(id, types.id) && Objects.equals(name, types.name) && Objects.equals(intro, types.intro) && Objects.equals(createTime, types.createTime) && Objects.equals(updateTime, types.updateTime) && Objects.equals(operator, types.operator);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, intro, createTime, updateTime, operator);
    }
}
